package com.blockmeta.bbs.immodule.net.pojo;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * @author AirThor
 * @date 2019/3/27.
 */
public class Fans implements Parcelable {


    @SerializedName("id")
    public int id;
    @SerializedName("logo")
    public String logo;
    @SerializedName("name")
    public String name;
    @SerializedName("fans_id")
    public long fansId;
    @SerializedName("user_id")
    public long userId;
    @SerializedName("group_id")
    public String grade;
    @SerializedName("group_name")
    public String gradeTag;
    @SerializedName("date")
    public String registrationTime;


    public static final Creator<Fans> CREATOR = new Creator<Fans>() {
        @Override
        public Fans createFromParcel(Parcel in) {
            return new Fans(in);
        }

        @Override
        public Fans[] newArray(int size) {
            return new Fans[size];
        }
    };

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getFansId() {
        return fansId;
    }

    public void setFansId(long fansId) {
        this.fansId = fansId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getGradeTag() {
        return gradeTag;
    }

    public void setGradeTag(String gradeTag) {
        this.gradeTag = gradeTag;
    }

    public String getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(String registrationTime) {
        this.registrationTime = registrationTime;
    }




    public Fans() {
    }

    protected Fans(Parcel in) {
        this.id = in.readInt();
        this.logo = in.readString();
        this.name = in.readString();
        this.fansId = in.readInt();
        this.userId = in.readInt();
        this.grade = in.readString();
        this.gradeTag = in.readString();
        this.registrationTime = in.readString();
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(logo);
        dest.writeString(name);
        dest.writeLong(fansId);
        dest.writeLong(userId);
        dest.writeString(grade);
        dest.writeString(gradeTag);
        dest.writeString(registrationTime);
    }
}
